<include file="__THEME__/header" />
<include file="__THEME__/page_top" />
<div class="w_970 ov m_b40">
	<div class="fl w_720">
		<h2 class="t_26 c_333 p_t25 bold_n">
			<a href="#" class="c_009">帐户</a>/个人资料
		</h2>
		<h3 class="t_14 p_b10 bold_n c_666">编辑您的姓名，头像等。</h3>
		<include file="_tabs" />
		 <form id="ajax_user_form" name="ajax_user_form" action="{:U('public/Account/doModifyPassword')}" method="post">
		<div class="login_dl m_b20">
			<dl>
				<dt>旧密码：</dt>
				<dd>
					<input id="oldpassword" name="oldpassword" type="password" value="" class="iut c_999" autocomplete = 'off'>

				</dd>
			</dl>
			<dl>
				<dt>新密码：</dt>
				<dd>
					<input id="password" name="password" type="password" value="" class="iut c_999">
					<div class="bc c_999">最少6个字符</div>
				</dd>
			</dl>

			<dl>
				<dt>确认新密码：</dt>
				<dd>
					<input id="repassword" name="repassword" type="password" value="" class="iut c_999">
				</dd>
			</dl>
			<dl>
				<dt></dt>
				<dd>
					<a class="tc butas bor di b_fff w_255 c_f06" href="javascript:;" onclick="$('#ajax_user_form').submit();">修改密码</a>
				</dd>
			</dl>
		</div>
		</form>
	</div>
	<div class="w_220 fr p_t25">
		<div class="yj b_fff p_q10 artis_yc_top">
			<p class="t_14 tc c_666">
				获取<i class="yj b_f83 c_fff text_i t_12">PRO</i>版 人民币：150/年
			</p>
			<p class="tc c_999">产品搜索更多，免费试用。</p>
		</div>
	</div>
</div>
<script>
$(document).ready(function() { 
    $('#ajax_user_form').submit(function(){
        $(this).ajaxSubmit({
            beforeSubmit:  function(){
            	if($('#oldpassword').val().length == 0) {
            		ui.error('旧密码不能为空');
                    return false;
                }
            	if($('#password').val().length == 0) {
            		ui.error('新密码不能为空');
                    return false;
                }
            	if($('#repassword').val().length == 0) {
            		ui.error('确认新密码不能为空');
                    return false;
                }
            },
            success: function(json){
            	if( json.status == 1 ){
            		ui.success(json.info);
            	}else if(json.status == 2){
            		
            	}else{
            		ui.error(json.info);
            	}
            },
            dataType: 'json'
        }); 
        return false; 
    });
})
</script>
<include file="__THEME__/footer" />
</body>
</html>